@echo off
echo ========================================
echo Docker Configuration Test
echo ========================================
echo.

echo Checking Docker installation...
docker --version
if %errorlevel% neq 0 (
    echo ERROR: Docker is not installed or not in PATH
    pause
    exit /b 1
)
echo ✓ Docker is installed
echo.

echo Checking Docker daemon...
docker ps >nul 2>&1
if %errorlevel% neq 0 (
    echo ERROR: Docker daemon is not running
    echo Please start Docker Desktop
    pause
    exit /b 1
)
echo ✓ Docker daemon is running
echo.

echo Checking Dockerfile...
if not exist Dockerfile (
    echo ERROR: Dockerfile not found
    pause
    exit /b 1
)
echo ✓ Dockerfile exists
echo.

echo Testing Docker build (dry run)...
docker build --help >nul 2>&1
if %errorlevel% neq 0 (
    echo ERROR: Docker build command failed
    pause
    exit /b 1
)
echo ✓ Docker build command is available
echo.

echo ========================================
echo All checks passed!
echo ========================================
echo.
echo You can now run: redeploy.bat
echo.
pause
